package com.struct.factory{
	/**
	 * 创建者：薛恒杰
	 * 工程名称：Marbles
	 * 创建时间：Aug 6, 2012 5:21:00 PM
	 * 类说明：RoomFactory.as,
	 */
	import com.struct.graph.room.Room;
	import com.struct.graph.room.RoomGraphWorker;
	
	import sacu.s.Factory;
	
	public class RoomFactory extends Factory{
		private var room:Room;
		private var roomGW:RoomGraphWorker;
		public function RoomFactory(Name:String)
		{
			super(Name);
		}
		override protected function onInitFactory():void{
			super.onInitFactory();
			room = new Room();
			roomGW = new RoomGraphWorker("RoomGraphWorker", room);
		}
		override protected function onStartFactory():void{
			registerGraphicsWorker(roomGW);
//			SSA.application
		}
		override public function disposeFactory():void{
			super.disposeFactory();
		}
	}
}